package com.whjz.dcfs.util;

import java.lang.reflect.InvocationTargetException;

public class UserUtil {
	public static String findUserFromSession(Object object,String methodName) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException{
		Class clazz = object.getClass();
		return (String)clazz.getMethod(methodName, null).invoke(object, null);
	}
}
